package java2;

import java.util.Scanner;

public class java2_1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		StringBuilder str =new StringBuilder("");
		while(sc.hasNextInt()){
			int n = sc.nextInt();
			int start =sc.nextInt();
			int end = sc.nextInt();
			for(int i=0;i<n;i++){ 
				str.append(i);
			}
			System.out.println(str.substring(start,end));
		}

	}

}
